import { createRouter, createWebHistory, RouteRecordRaw } from 'vue-router'

const routes: Array<RouteRecordRaw> = [
    {
        path: "/",
        name: "/InvestAdd",
        component: () => import('../views/InvestAdd.vue')
    },
    {
        path: "/InvestShow",
        name: "/InvestShow",
        component: () => import('../views/InvestShow.vue')
    },
    {
        path: "/InvestUpdate",
        name: "/InvestUpdate",
        component: () => import('../views/InvestUpdate.vue')
    },
]

const router = createRouter({
    history: createWebHistory(),
    routes
})
//导出路由
export default router